package org.giovanolli.mumi.view.converter;

import javax.faces.convert.FacesConverter;

import org.giovanolli.mumi.entities.AttentionTimeStatus;

@FacesConverter(value = "attentionTimeStatusConverter")
public class AttentionTimeStatusConverter extends SelectItemsBaseConverter<AttentionTimeStatus> {
	@Override
	public String getAsString(Object value) {
		return ((AttentionTimeStatus) value).name();
	}

	@Override
	public String getItemLabel(AttentionTimeStatus object) {
		return object != null ? object.name() : null;
	}

	@Override
	public Object getItemValue(AttentionTimeStatus object) {
		return object;
	}

}